package com.how2j.springcloud.service;

import com.how2j.springcloud.client.ProductClientRibbon;
import com.how2j.springcloud.pojo.Product;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: kaiyi
 * @create: 2020-10-23 23:45
 */
@Service
public class ProductService {

  @Autowired
  ProductClientRibbon productClientRibbon;

  public List<Product> listProducts(){
    return productClientRibbon.listProdcuts();

  }
}
